package juhouse.biz.kc.form;



import java.io.InputStream;

import juhouse.framework.tools.DoText;

import org.apache.commons.fileupload.FileItem;
import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

public class ItemForm extends ActionForm{

	/**
	 * 
	 */
	DoText myDoText = new DoText();
	
	private static final long serialVersionUID = 0L;
	private String itemId;
	private String parentId;
	private String itemName;
	private String itemCode;
	private String byname;
	private String menuId;
	private String areaId;
	private int itemType;
    private FileItem file; 
    
    private InputStream fis;

	
	
	
	public InputStream getFis() {
		return fis;
	}
	public void setFis(InputStream fis) {
		this.fis = fis;
	}
	public int getItemType() {
		return itemType;
	}
	public void setItemType(int itemType) {
		this.itemType = itemType;
	}
	public String getAreaId() {
		return areaId;
	}
	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getByname() {
		return byname;
	}
	public void setByname(String byname) {
		if(byname.equals("")) byname = null;
		byname = myDoText.htmlEncode(byname);
		this.byname = byname;
	}
	public String getItemCode() {
		return itemCode;
	}
	public void setItemCode(String itemCode) {
		itemCode = myDoText.htmlEncode(itemCode);
		this.itemCode = itemCode;
	}
	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		itemName = myDoText.htmlEncode(itemName);
		this.itemName = itemName;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		if(parentId.equals("")) parentId = null;
		this.parentId = parentId;
	}

	public FileItem getFile() {
		return file;
	}
	public void setFile(FileItem file) {
		this.file = file;
	}


}
